var express = require('express');
var teacherRouter = express.Router();
const teacher = require('../dao/teacher_dao')



// 获取请假条
teacherRouter.get('/getLeave', function (req, res) {
  teacher.getLeave(req, res)
});

// 获取用户请假审批与数量
teacherRouter.get('/getUserLeave', function (req, res) {
  teacher.getUserLeave(req, res)
});

// 当前请假单状态审批
teacherRouter.get('/upLeaveState', function (req, res) {
  teacher.upLeaveState(req, res)
});


// 获取班级id
teacherRouter.get('/getCidByCname', function (req, res) {
  teacher.getCidByCname(req, res)
});

// 按页获取风险人群和总数
teacherRouter.get('/getRiskedPeoplePage', function (req, res) {
  teacher.getRiskedPeoplePage(req, res)
});

// 按页获取经过高风险地区人群和总数
teacherRouter.get('/getDangerPeoplePage', function (req, res) {
  teacher.getDangerPeoplePage(req, res)
});
module.exports = teacherRouter;